{
  "resourceType": "Bundle",
  "id": "BundleDeviceTest13.4",
  "meta": {
    "profile": [
      "https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument"
    ]
  },
  "identifier": {
    "system": "https://fhir.by/ValueSet/urn:ietf:rfc:3086",
    "value": "{{$guid}}"
  },
  "type": "document",
  "timestamp": "2025-11-15T17:00:00Z",
  "entry": [
    {
      "fullUrl": "Composition/CompositionDeviceTest13.4",
      "resource": {
        "resourceType": "Composition",
        "id": "CompositionDeviceTest13.4",
        "meta": {
          "profile": [
            "https://fhir.by/StructureDefinition/CompDocument"
          ]
        },
        "status": "final",
        "type": {
          "coding": [
            {
              "system": "https://fhir.by/ValueSet/CompositionType",
              "code": "general",
              "display": "Общая медицинская информация"
            }
          ]
        },
        "subject": [
          {
            "reference": "Patient/PatientTest"
          }
        ],
        "date": "2025-11-15T17:00:00Z",
        "author": [
          {
            "reference": "Practitioner/{{AuthPractitioner}}"
          }
        ],
        "title": "CompDocument для наполненного Bundle Обеспечению изделием медицинского назначения",
        "custodian": {
          "reference": "Organization/{{AuthOrganization}}"
        },
        "event": [
          {
            "detail": [
              {
                "reference": {
                  "reference": "Procedure/EndoprostheticsTest"
                }
              }
            ]
          },
          {
            "detail": [
              {
                "reference": {
                  "reference": "Condition/CoxarthrosisFinalTest"
                }
              }
            ]
          },
          {
            "detail": [
              {
                "reference": {
                  "reference": "Device/5126e948-f039-479d-b0a6-776b8ac789c4"
                }
              }
            ]
          },
          {
            "detail": [
              {
                "reference": {
                  "reference": "Device/6323a5bb-dc41-4b99-8c32-7f19c5eea4d1"
                }
              }
            ]
          },
          {
            "detail": [
              {
                "reference": {
                  "reference": "Device/128f9a3a-7e78-47ae-8b22-d9fd2a267629"
                }
              }
            ]
          }
        ]
      }
    },
    {
      "fullUrl": "Patient/PatientTest",
      "resource": {
        "resourceType": "Patient",
        "id": "PatientTest",
        "meta": {
          "profile": [
            "https://fhir.by/StructureDefinition/PatientWithIdentificationNumber"
          ]
        },
        "extension": [
          {
            "url": "https://fhir.by/StructureDefinition/IncapacityExtension",
            "valueBoolean": true
          },
          {
            "url": "https://fhir.by/StructureDefinition/DisabilityGroup",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/DisabilityGroup",
                  "code": "2_group",
                  "display": "II группа"
                }
              ]
            }
          },
          {
            "url": "https://fhir.by/StructureDefinition/DisabilityReason",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/DisabilityReason",
                  "code": "general",
                  "display": "общее заболевание"
                }
              ]
            }
          },
          {
            "extension": [
              {
                "url": "https://fhir.by/StructureDefinition/PatientJobProfession",
                "valueString": "Инспектор по контролю за содержанием и охране зеленых насаждений"
              },
              {
                "url": "https://fhir.by/StructureDefinition/PatientJobProfessionCode",
                "valueCodeableConcept": {
                  "coding": [
                    {
                      "system": "https://fhir.by/ValueSet/SpecialtyProfPerson",
                      "code": "3119-007",
                      "display": "Инспектор по контролю за содержанием и охране зеленых насаждений"
                    }
                  ]
                }
              },
              {
                "url": "https://fhir.by/StructureDefinition/PatientJobPlace",
                "valueString": "УП «Зеленстрой»"
              },
              {
                "url": "https://fhir.by/StructureDefinition/TermOFWork",
                "valuePeriod": {
                  "start": "2020-11-07"
                }
              },
              {
                "url": "https://fhir.by/StructureDefinition/MainJobPlace",
                "valueBoolean": true
              }
            ],
            "url": "https://fhir.by/StructureDefinition/PatientJob"
          },
          {
            "extension": [
              {
                "url": "https://fhir.by/StructureDefinition/ConsentPersonalDataBoolean",
                "valueBoolean": true
              },
              {
                "url": "https://fhir.by/StructureDefinition/ConsentPersonalDataPeriod",
                "valuePeriod": {
                  "start": "2025-01-01"
                }
              }
            ],
            "url": "https://fhir.by/StructureDefinition/ConsentPersonalData"
          }
        ],
        "identifier": [
          {
            "use": "usual",
            "type": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/PersonalDocumentType",
                  "code": "INP",
                  "display": "Уникальный идентификационный номер"
                }
              ]
            },
            "value": "7551027A009PB6"
          },
          {
            "extension": [
              {
                "extension": [
                  {
                    "url": "https://fhir.by/StructureDefinition/PassportIssuedString",
                    "valueString": "Центральным РУВД г Минска, 21.08.2021"
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/PassportIssuedDate",
                    "valueDate": "2021-08-21"
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/PassportIssuedCode",
                    "valueCodeableConcept": {
                      "coding": [
                        {
                          "system": "https://fhir.by/ValueSet/OCAM",
                          "code": "710"
                        }
                      ]
                    }
                  }
                ],
                "url": "https://fhir.by/StructureDefinition/PassportIssued"
              }
            ],
            "use": "usual",
            "type": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/PersonalDocumentType",
                  "code": "Passport-RB",
                  "display": "Паспорт гражданина Республики Беларусь"
                }
              ]
            },
            "value": "MP2334561"
          },
          {
            "extension": [
              {
                "extension": [
                  {
                    "url": "https://fhir.by/StructureDefinition/PassportIssuedDate",
                    "valueDate": "2024-03-01"
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/PassportIssuedString",
                    "valueString": "Центральным МРЭК г Минска, 31.01.2024"
                  }
                ],
                "url": "https://fhir.by/StructureDefinition/PassportIssued"
              }
            ],
            "use": "official",
            "type": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/PersonalDocumentType",
                  "code": "CDP",
                  "display": "Удостоверение инвалида"
                }
              ]
            },
            "value": "Серия 09 №1234562",
            "period": {
              "start": "2024-02-15"
            },
            "assigner": {
              "reference": "Organization/af69999d-3e5c-49b9-a9e9-38e7687785f3"
            }
          },
          {
            "extension": [
              {
                "extension": [
                  {
                    "url": "https://fhir.by/StructureDefinition/PassportIssuedDate",
                    "valueDate": "1990-12-31"
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/PassportIssuedString",
                    "valueString": "Октябрьское РУВД г.Минска"
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/PassportIssuedCode",
                    "valueCodeableConcept": {
                      "coding": [
                        {
                          "system": "https://fhir.by/ValueSet/OCAM",
                          "code": "705",
                          "display": "Октябрьское РУВД г.Минска"
                        }
                      ]
                    }
                  }
                ],
                "url": "https://fhir.by/StructureDefinition/PassportIssued"
              }
            ],
            "use": "usual",
            "type": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/PersonalDocumentType",
                  "code": "BC",
                  "display": "Свидетельство о рождении"
                }
              ]
            },
            "value": "АВ7654322"
          }
        ],
        "active": true,
        "name": [
          {
            "family": "Иванов",
            "given": [
              "Петр",
              "Сидорович"
            ]
          }
        ],
        "telecom": [
          {
            "extension": [
              {
                "extension": [
                  {
                    "url": "https://fhir.by/StructureDefinition/PatientNotificationType",
                    "valueCodeableConcept": {
                      "coding": [
                        {
                          "system": "https://fhir.by/ValueSet/PatientNotificationType",
                          "code": "SMS",
                          "display": "SMS"
                        }
                      ]
                    }
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/PatientNotificationType",
                    "valueCodeableConcept": {
                      "coding": [
                        {
                          "system": "https://fhir.by/ValueSet/PatientNotificationType",
                          "code": "messenger-tel",
                          "display": "Telegram"
                        }
                      ]
                    }
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/PatientNotificationType",
                    "valueCodeableConcept": {
                      "coding": [
                        {
                          "system": "https://fhir.by/ValueSet/PatientNotificationType",
                          "code": "e-mail",
                          "display": "e-mail"
                        }
                      ]
                    }
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/PatientConsentForNotification",
                    "valueBoolean": true
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/PatientAccountPoint",
                    "valueBoolean": true
                  }
                ],
                "url": "https://fhir.by/StructureDefinition/PatientTelecomPurpose"
              }
            ],
            "system": "phone",
            "value": "295748410"
          },
          {
            "system": "email",
            "value": "test_mail@gmail.by"
          }
        ],
        "gender": "male",
        "birthDate": "1990-12-31",
        "deceasedBoolean": false,
        "address": [
          {
            "extension": [
              {
                "url": "https://fhir.by/StructureDefinition/CoutryForAddresses",
                "valueCodeableConcept": {
                  "coding": [
                    {
                      "system": "https://fhir.by/ValueSet/CitizenshipCode",
                      "code": "BY",
                      "display": "Беларусь"
                    }
                  ]
                }
              },
              {
                "url": "https://fhir.by/StructureDefinition/StreetGeoRegistry",
                "valueCodeableConcept": {
                  "coding": [
                    {
                      "system": "https://fhir.by/ValueSet/StreetGeoRegistry",
                      "code": "5170309411",
                      "display": "Улица Золотая Горка"
                    }
                  ]
                }
              },
              {
                "url": "https://fhir.by/StructureDefinition/ApartmentRoom",
                "valueString": "кв. 29"
              }
            ],
            "use": "home",
            "text": "г.Минск, Улица Золотая Горка, д.5, кв.29",
            "postalCode": "220022"
          },
          {
            "extension": [
              {
                "url": "https://fhir.by/StructureDefinition/CoutryForAddresses",
                "valueCodeableConcept": {
                  "coding": [
                    {
                      "system": "https://fhir.by/ValueSet/CitizenshipCode",
                      "code": "BY",
                      "display": "Беларусь"
                    }
                  ]
                }
              },
              {
                "url": "https://fhir.by/StructureDefinition/StreetGeoRegistry",
                "valueCodeableConcept": {
                  "coding": [
                    {
                      "system": "https://fhir.by/ValueSet/StreetGeoRegistry",
                      "code": "51703019678",
                      "display": "Проспект Рокоссовского"
                    }
                  ]
                }
              },
              {
                "url": "https://fhir.by/StructureDefinition/ApartmentRoom",
                "valueString": "кв. 2"
              }
            ],
            "use": "temp",
            "text": "г.Минск, Проспект Рокоссовского, д.20, кв.2",
            "postalCode": "220011"
          }
        ],
        "maritalStatus": {
          "coding": [
            {
              "system": "https://fhir.by/ValueSet/MaritalStatus",
              "code": "married"
            }
          ]
        },
        "contact": [
          {
            "relationship": [
              {
                "coding": [
                  {
                    "system": "https://fhir.by/ValueSet/RelatedPersonType",
                    "code": "wife"
                  }
                ]
              }
            ],
            "name": {
              "family": "Иванова",
              "given": [
                "Лариса",
                "Ивановна"
              ]
            },
            "telecom": [
              {
                "system": "phone",
                "value": "802990990908"
              }
            ]
          }
        ],
        "generalPractitioner": [
          {
            "reference": "Organization/97e05a7d-b923-4b34-bf76-e4b19e248f83",
            "identifier": {
              "value": "123156789012",
              "period": {
                "start": "2002-12-11"
              }
            }
          }
        ]
      }
    },
    {
      "fullUrl": "Procedure/EndoprostheticsTest",
      "resource": {
        "resourceType": "Procedure",
        "id": "EndoprostheticsTest",
        "meta": {
          "profile": [
            "https://fhir.by/StructureDefinition/SurgicalProcedure"
          ]
        },
        "extension": [
          {
            "url": "https://fhir.by/StructureDefinition/FromOrganization",
            "valueReference": {
              "reference": "Organization/d472b8d6-5c80-4dfb-ad09-c5ce8596d5e9"
            }
          },
          {
            "url": "https://fhir.by/StructureDefinition/EncounterTypeOfService",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/EncounterTypeOfService",
                  "code": "paid",
                  "display": "Платные услуги"
                }
              ]
            }
          },
          {
            "url": "https://fhir.by/StructureDefinition/TermsOfService",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/VSTermsOfService",
                  "code": "2",
                  "display": "стационарные"
                }
              ]
            }
          },
          {
            "url": "https://fhir.by/StructureDefinition/InpatientMedicalRecord",
            "valueReference": {
              "reference": "EpisodeOfCare/{{Hospitalisation2}}"
            }
          },
          {
            "url": "https://fhir.by/StructureDefinition/AnesthesiaType",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/AnesthesiaType",
                  "code": "endotracheal",
                  "display": "Эндотрахеальный наркоз"
                }
              ]
            }
          },
          {
            "url": "https://fhir.by/StructureDefinition/ProcedureComplexity",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/ProcedureComplexity",
                  "code": "high-tech",
                  "display": "\tВысокотехнологичное"
                }
              ]
            }
          },
          {
            "url": "https://fhir.by/StructureDefinition/ProcedureUrgency",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/ProcedureUrgency",
                  "code": "planned",
                  "display": "Плановое"
                }
              ]
            }
          }
        ],
        "identifier": [
          {
            "value": "13580",
            "assigner": {
              "reference": "Organization/d472b8d6-5c80-4dfb-ad09-c5ce8596d5e9"
            }
          }
        ],
        "status": "completed",
        "category": [
          {
            "coding": [
              {
                "system": "https://fhir.by/ValueSet/ProcedureType",
                "code": "reconstructive",
                "display": "Реконструктивная"
              }
            ]
          }
        ],
        "code": {
          "coding": [
            {
              "system": "https://fhir.by/ValueSet/SurgicalInterventions",
              "code": "NFSB30",
              "display": "Первичное тотальное протезирование тазобедренного сустава по гибридной методике"
            }
          ],
          "text": "Первичное тотальное протезирование тазобедренного сустава по гибридной методике"
        },
        "subject": {
          "reference": "Patient/PatientTest"
        },
        "occurrencePeriod": {
          "start": "2025-11-15T12:00:00Z",
          "end": "2025-11-15T14:20:00Z"
        },
        "performer": [
          {
            "function": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/OperatingTeam",
                  "code": "operator",
                  "display": "врач-хирург оперирующий"
                }
              ]
            },
            "actor": {
              "reference": "PractitionerRole/08aea9fa-c93e-11f0-8c9d-bd4080cfaf07"
            },
            "period": {
              "start": "2025-11-15T12:00:00Z",
              "end": "2025-11-15T13:40:00Z"
            }
          },
          {
            "function": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/OperatingTeam",
                  "code": "assistant",
                  "display": "врач-хирург ассистирующий"
                }
              ]
            },
            "actor": {
              "reference": "PractitionerRole/3c057f8d-4369-4c5e-86be-f710dff3a91c"
            },
            "period": {
              "start": "2025-11-15T12:00:00Z",
              "end": "2025-11-15T13:50:00Z"
            }
          },
          {
            "function": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/OperatingTeam",
                  "code": "surgical-sister",
                  "display": "медицинская сестра операционная"
                }
              ]
            },
            "actor": {
              "reference": "PractitionerRole/a2cc4fc1-710f-11f0-9b3b-fa6c8bb78947"
            },
            "period": {
              "start": "2025-11-15T12:00:00Z",
              "end": "2025-11-15T14:20:00Z"
            }
          },
          {
            "function": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/OperatingTeam",
                  "code": "anesthetist",
                  "display": "врач-анестезиолог-реаниматолог"
                }
              ]
            },
            "actor": {
              "reference": "PractitionerRole/c05ded81-1ebe-11f0-8257-f1172741d6fc"
            },
            "period": {
              "start": "2025-11-15T12:00:00Z",
              "end": "2025-11-15T14:20:00Z"
            }
          },
          {
            "function": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/OperatingTeam",
                  "code": "anesthetist-sister",
                  "display": "медицинская сестра-анестезист"
                }
              ]
            },
            "actor": {
              "reference": "PractitionerRole/a2cc4fc1-710f-11f0-9b3b-fa6c8bb78947"
            },
            "period": {
              "start": "2025-11-15T12:00:00Z",
              "end": "2025-11-15T14:20:00Z"
            }
          }
        ],
        "location": {
          "reference": "Location/3dca489e-20b3-40d5-9833-e9353716d3b8"
        },
        "reason": [
          {
            "concept": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/SurgicalInterventionDiagnosis",
                  "code": "postoperative",
                  "display": "Диагноз после вмешательства"
                }
              ]
            },
            "reference": {
              "reference": "Condition/CoxarthrosisFinalTest"
            }
          }
        ],
        "note": [
          {
            "text": "После обработки операционного поля выполнен доступ к тазобедренному суставу. Обработка вертлужной впадины \nУдаление поврежденной головки бедренной кости и части вертлужной впадины. Обработка вертлужной впадины сферическими фрезами,  установка металлического и полиэтиленового компонентов чаши эндопротеза.\nОбработка бедренной кости риммерами, установка ножки в канал бедренной кости. Установка головки (сферического компонента) на ножку. \nСоединение головки с чашей протеза. Оценка двигательной функции сустава. Послойное ушивание раны. Асептическая повязка.\nКровопотеря - около 200 мл. Осложнений во время операции не отмечено."
          }
        ],
        "focalDevice": [
          {
            "manipulated": {
              "reference": "Device/5126e948-f039-479d-b0a6-776b8ac789c4"
            }
          },
          {
            "manipulated": {
              "reference": "Device/6323a5bb-dc41-4b99-8c32-7f19c5eea4d1"
            }
          },
          {
            "manipulated": {
              "reference": "Device/128f9a3a-7e78-47ae-8b22-d9fd2a267629"
            }
          }
        ]
      }
    },
    {
      "fullUrl": "Condition/CoxarthrosisFinalTest",
      "resource": {
        "resourceType": "Condition",
        "id": "CoxarthrosisFinalTest",
        "meta": {
          "profile": [
            "https://fhir.by/StructureDefinition/FinalDiagnosis"
          ]
        },
        "extension": [
          {
            "url": "https://fhir.by/StructureDefinition/KindOfDiagnosis",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/KindOfDiagnosisCode",
                  "code": "Final"
                }
              ]
            }
          },
          {
            "url": "https://fhir.by/StructureDefinition/AssertedDate",
            "valueDateTime": "2025-11-15T14:15:00Z"
          },
          {
            "url": "https://fhir.by/StructureDefinition/FirstTimeRevealed",
            "valueBoolean": true
          }
        ],
        "clinicalStatus": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
              "code": "active"
            }
          ]
        },
        "code": {
          "coding": [
            {
              "system": "https://fhir.by/ValueSet/InternClassificDiseases10",
              "code": "M16.0",
              "display": "M16.0 - Первичный коксартроз двусторонний"
            }
          ]
        },
        "subject": {
          "reference": "Patient/PatientTest"
        },
        "onsetDateTime": "2025-11-15",
        "recordedDate": "2025-11-15",
        "participant": [
          {
            "actor": {
              "reference": "PractitionerRole/bee18426-9548-11f0-b31c-51c138b8dbec"
            }
          }
        ]
      }
    },
    {
      "fullUrl": "Device/5126e948-f039-479d-b0a6-776b8ac789c4",
      "resource": {
        "resourceType": "Device",
        "id": "5126e948-f039-479d-b0a6-776b8ac789c4",
        "meta": {
          "profile": [
            "https://fhir.by/StructureDefinition/DeviceForPatient"
          ]
        },
        "displayName": "Эндопротез тазобедренного сустава: головка",
        "definition": {
          "concept": {
            "coding": [
              {
                "system": "https://fhir.by/ValueSet/MedicalProducts",
                "code": "5126e948-f039-479d-b0a6-776b8ac789c4",
                "display": "Эндопротез тазобедренного сустава: компоненты эндопротеза тазобедренного сустава: головка керамическая Biolox Delta Ceramic Femoral Head (DELTA CER HEAD),"
              }
            ]
          }
        },
        "manufactureDate": "2025-03-02",
        "serialNumber": "AA11223399",
        "modelNumber": "DELTA CER HEAD",
        "owner": {
          "reference": "Organization/a1be05bd-026e-4e43-820b-7e616f68e9b8"
        }
      }
    },
    {
      "fullUrl": "Device/6323a5bb-dc41-4b99-8c32-7f19c5eea4d1",
      "resource": {
        "resourceType": "Device",
        "id": "6323a5bb-dc41-4b99-8c32-7f19c5eea4d1",
        "meta": {
          "profile": [
            "https://fhir.by/StructureDefinition/DeviceForPatient"
          ]
        },
        "displayName": "Эндопротез тазобедренного сустава: ножка",
        "definition": {
          "concept": {
            "coding": [
              {
                "system": "https://fhir.by/ValueSet/MedicalProducts",
                "code": "6323a5bb-dc41-4b99-8c32-7f19c5eea4d1",
                "display": "Эндопротез тазобедренного сустава: ножка цементная бедренная Corail,"
              }
            ]
          }
        },
        "manufactureDate": "2025-03-02",
        "serialNumber": "AA11223377",
        "modelNumber": "Corail",
        "owner": {
          "reference": "Organization/a1be05bd-026e-4e43-820b-7e616f68e9b8"
        }
      }
    },
    {
      "fullUrl": "Device/128f9a3a-7e78-47ae-8b22-d9fd2a267629",
      "resource": {
        "resourceType": "Device",
        "id": "128f9a3a-7e78-47ae-8b22-d9fd2a267629",
        "meta": {
          "profile": [
            "https://fhir.by/StructureDefinition/DeviceForPatient"
          ]
        },
        "displayName": "Эндопротез тазобедренного сустава: чашка",
        "definition": {
          "concept": {
            "coding": [
              {
                "system": "https://fhir.by/ValueSet/MedicalProducts",
                "code": "128f9a3a-7e78-47ae-8b22-d9fd2a267629",
                "display": "Эндопротез тазобедренного сустава:чашка,"
              }
            ]
          }
        },
        "manufactureDate": "2025-03-02",
        "serialNumber": "AA11223366",
        "modelNumber": "PINNACLE",
        "owner": {
          "reference": "Organization/a1be05bd-026e-4e43-820b-7e616f68e9b8"
        }
      }
    }
  ]
}